<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Document</title>
	</head>
	<body>
		<script type="text/javascript">
			//default.js文件
			let name="tom";
			let age=20;
			let phone='13813661234'
			let introduce=function(){
				return `My name is ${name}!I'm ${age} years old!`;
			};
			
			export default name;	//默认导出
						......
			//index.html文件
			import defaultName from './default';//使用任意变量名接收
			console.log(defaultName);
		</script>
	</body>
</html>